package com.company.project.core;

 /*
  * @Description:    响应码枚举，参考HTTP状态码的语义
  * @Author:         brilliantzhao
  * @CreateDate:     2019/5/25 22:46
  * @UpdateUser:
  * @UpdateDate:     2019/5/25 22:46
  * @UpdateRemark:
  */
public enum ResultCode {
    SUCCESS(100),// 成功
    FAIL(200),// 失败
    UNAUTHORIZED(401),//未认证（签名错误）
    NOT_FOUND(404),//接口不存在
    INTERNAL_SERVER_ERROR(500);//服务器内部错误

    private final int code;

    ResultCode(int code) {
        this.code = code;
    }

    public int code() {
        return code;
    }
}
